package com.itmuch.cms.admin.service;

import com.itmuch.cms.admin.domain.Admin;
import com.itmuch.core.page.PageInfo;
import com.itmuch.core.page.PageVo4BsGrid;

public interface IAdminService {

    int deleteById(Integer id);

    int insert(Admin record);

    Admin selectById(Integer id);

    int updateById(Admin record);

    /**
     * 通过用户名查询管理员
     * @param username 用户名
     * @return admin
     */
    Admin selectByUsername(String username);

    PageInfo<Admin> selectPaged(PageVo4BsGrid vo);
}